Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

423
Vistas
Vue Js-Error in callback for watcher "function () { return this._data.$$state }": "Error: [vuex] do not mutate vuex store state outside mutation

Screenshot of the error I get in the console

The method I use

In mounted

MapState in the Computed

My code is working. But I don't understand this error. I couldn't find the solution. I ask for your kind help.

about 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

This is because you mutate state outside mutations and it's there:

this.systemstatus.splice(i, 1)

You could copy systemstatus by using spread operator, for example:

const systemStatusCopy = [...this.systemstatus]

and you won't get any errors, however state won't change either, but if you need it to change in a store, then add mutation and commit a mutation whenever you need.

about 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda